
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;




public class LariButtonTest extends JFrame{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	public LariButtonTest(){
		
		
		
		setTitle("Border Example");
		JPanel panel = new JPanel(new BorderLayout());
	//	JPanel left = new JPanel();
		JPanel right = new JPanel(new BorderLayout());
		right.setBackground(Color.black);
		right.setPreferredSize(new Dimension(250,150));
//		left.setBackground(Color.GRAY);
//		left.setPreferredSize(new Dimension(250,150));
		JButton button = new JButton("NameOfButton");
		button.addActionListener(new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub
				System.exit(0);
			}
		});
		right.add(button, BorderLayout.WEST);
		panel.add(right, BorderLayout.SOUTH);
	//	panel.add(left, BorderLayout.EAST);
		
		
		
		panel.setBorder(new EmptyBorder(new Insets(20,20,20,20)));
		
		add(panel);
		pack();
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLocationRelativeTo(null);
		
	}
	
	public static void main(String[] args){
		//Calculator calc = new Calculator();
		//calc.setVisible(true);
		
		JFrame frame = new JFrame("ButtonTest");
		
		JPanel gamePanel = new JPanel(new BorderLayout(10,10));
		gamePanel.setBorder(new EmptyBorder(new Insets(10,10,10,10)));
		
		
		gamePanel.add(StatsPanel.getInstance(), BorderLayout.NORTH);
		gamePanel.add(ButtonActionPanel.getInstance(), BorderLayout.EAST);
		gamePanel.add(GameBoardPanel.getInstance(), BorderLayout.CENTER);
		
		frame.add(gamePanel);
		
		frame.setVisible(true);
		frame.pack();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

	}

}
